package com.woniuxy.sales.service;

import com.woniuxy.sales.model.entity.ProductsOrders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.sales.model.entity.ProductsOrdersDetails;
import com.woniuxy.sales.model.vo.ProductsOrderVo;

import java.util.List;

/**
* @author liboyang
* @description 针对表【products_orders】的数据库操作Service
* @createDate 2024-11-08 14:45:33
*/
public interface ProductsOrdersService extends IService<ProductsOrders> {

    ProductsOrderVo addOrder(Integer userId, ProductsOrderVo order);

    List<ProductsOrders> queryOrder(Integer userId, Integer status);

    List<ProductsOrdersDetails> queryOrders(Integer userId, Long id);

    void cancelOrder(Long orderId, Integer userId);

    String pay(Long orderId, String uniqueCode);

    void updateStatus(Long orderId, Integer orderStatus);


}

